<template>
  <div class="screenTitle-container">
    <div class="screenTitle-box">
      <dv-decoration-1 class="left-decoration":color="['#fff','#2cf7fe']" style="width:10%;height:100%;" />
      <div class="title-box"><span>{{ title }}</span></div>
      <dv-decoration-1 class="reverse-right-decoration" :color="['#fff','#2cf7fe']" style="width:10%;height:100%;" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'screenTitle',
  props:{
    width:{
      type: String,
      default: '60%',
    },
    title:{
      type: String,
      default: '模块标题',
    }
  },
}
</script>

<style lang="scss" scoped>
.screenTitle-container{
  width: 100%;
  height: 20%;
}
.screenTitle-box{
  height: 45px;
  width: 240px;
  margin: 0 auto;
  border-bottom: 2px solid #2cf7fe;
  position: relative;
  line-height: 100%;
  box-shadow: inset 0px 0px 10px #b7f1f3;
}
.screenTitle-box:before{
  content: '';
  display: block;
  width: 52px;
  height: 100%;
  border-top: 2px solid #2cf7fe;
  position: absolute;
  transform: rotate(64deg);
  left: -32px;
  top: 10px;
  background: #071839;
}
.screenTitle-box:after{
  content: '';
  display: block;
  width: 52px;
  height: 100%;
  border-top: 2px solid #2cf7fe;
  position: absolute;
  transform: rotate(-64deg);
  left: 223px;
  top: 10px;
  background: #071839;
}
.left-decoration{
  position: absolute;
  left: 11%;
}
.reverse-right-decoration{
  transform: rotate(180deg);
  position: absolute;
  right: 11%;
  top: -5%;
}
.title-box{
  height: 100%;
  line-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
}
</style>
